package com.graduation.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.graduation.common.domain.dto.PageDTO;
import com.graduation.pojo.dto.ChangePasswordDTO;
import com.graduation.pojo.dto.LoginUserDTO;
import com.graduation.pojo.po.User;
import com.graduation.pojo.query.UserQuery;
import com.graduation.pojo.vo.UserVO;

public interface UserService extends IService<User> {

    String login(LoginUserDTO body);

    PageDTO<UserVO> pageUsers(UserQuery query);

    UserVO getUserById(Long id);

    void saveUser(User user);

    void updateUser(User user);

    void deleteUser(Long id);

    void changePassword(Long userId, ChangePasswordDTO changePasswordDTO);

}
